<?php
	//important check if plugin started correctly
	if(!function_exists('plugins')) exit;
	
		$n='news_'.$_SESSION['lang_short'];
		if($GLOBALS['r']->$n>0 && ($GLOBALS['where']=='news' or $GLOBALS['where']=='all') && $GLOBALS['query']){
			if($GLOBALS['conf']['mod_rewrite'])
				$url='news-'.read_text_mr($GLOBALS['r']->$GLOBALS['title_']).'_'.$GLOBALS['r']->id;
			else
				$url='index.php?module=news&amp;cat='.$GLOBALS['r']->id;
			$GLOBALS['theme_array']['category_news'] .= string_template(read_file($GLOBALS['theme_path'].'search_item_category.php'), array('theme_path'=>$teme_path, 'id'=>$GLOBALS['r']->id, 'url'=>$url, 'i'=>($i%2+1), 'name'=>read_text_rest($GLOBALS['r']->$GLOBALS['title_']), 'text'=>read_text_rest($GLOBALS['r']->$GLOBALS['text_'])));
		}
?>
